<div class="panel-overlay"></div>
<div class="panel panel-left panel-cover" id='panel-left'>
    <div class="content-block">
        <p style="text-align: center">爱淘爱生活</p>
        <?php if($role == 'super' || $role == 'admin'): ?>
        <?php if ($userInfo): ?>
        <p><?=$userInfo['nick_name']?>, <a href="/user/logout" class="external">注销</a></p>
        <?php else: ?>
        <p><a href="/user/login" class="external">登录</a></p>
        <?php endif; ?>
        <?php endif; ?>
        <p class="font-gray">------------</p>
        <?php if ($role == 'super' || $role == 'admin'): ?>
        <p><a href="/order/index" class="external">订单管理</a></p>
        <p><a href="/user/ulist" class="external">会员日志</a></p>
        <?php else: ?>
        <p><a href="/my/order" class="external">我的订单</a></p>
        <p><a href="/my/packet" class="external">我的红包</a></p>
        <?php endif; ?>
        <p><a href="/connect" class="external">我的收藏</a></p>
        
        <p class="font-gray">------------</p>
        <p><a href="/index/soq" class="external">查券找券</a></p>
        <p><a href="/help/weixin" class="external">微信公众号</a></p>
        <p><a href="/help/index" class="external">关于爱淘</a></p>
        <p style="text-align: center">
            <span class="close-panel" style="cursor: pointer">关闭</span>
        </p>
    </div>
</div>